package com.ndp.fb.redis.model;

import com.ndp.fb.rdb.model.User;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * Created by Jacky on 2015/1/29.
 */
@Setter
@Getter
@NoArgsConstructor
public class UserProfile implements Serializable {

    /**
     * 万能钥匙
     */
    private String masterKey;
    /**
     * current login user token
     */
    private String token;
    /**
     * user json string
     */
    private User user;
    public UserProfile(String token, User user) {
        this.token = token;
        this.user = user;
    }

    public UserProfile(String masterKey, String token, User user) {
        this.masterKey = masterKey;
        this.token = token;
        this.user = user;
    }


}
